using Google.ProtocolBuffers;
using micromsg.Proto;
using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
namespace micromsg
{
	[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
	public sealed class UploadVideoResponse : GeneratedMessageLite<UploadVideoResponse, UploadVideoResponse.Builder>
	{
		[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
		public sealed class Builder : GeneratedBuilderLite<UploadVideoResponse, UploadVideoResponse.Builder>
		{
			private bool resultIsReadOnly;
			private UploadVideoResponse result;
			protected override UploadVideoResponse.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}
			protected override UploadVideoResponse MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}
			public override UploadVideoResponse DefaultInstanceForType
			{
				get
				{
					return UploadVideoResponse.DefaultInstance;
				}
			}
			public BaseResponse BaseResponse
			{
				get
				{
					return this.result.BaseResponse;
				}
				set
				{
					this.SetBaseResponse(value);
				}
			}
			public string ClientMsgId
			{
				get
				{
					return this.result.ClientMsgId;
				}
				set
				{
					this.SetClientMsgId(value);
				}
			}
			public uint MsgId
			{
				get
				{
					return this.result.MsgId;
				}
				set
				{
					this.SetMsgId(value);
				}
			}
			public uint ThumbStartPos
			{
				get
				{
					return this.result.ThumbStartPos;
				}
				set
				{
					this.SetThumbStartPos(value);
				}
			}
			public uint VideoStartPos
			{
				get
				{
					return this.result.VideoStartPos;
				}
				set
				{
					this.SetVideoStartPos(value);
				}
			}
			public Builder()
			{
				this.result = UploadVideoResponse.DefaultInstance;
				this.resultIsReadOnly = true;
			}
			internal Builder(UploadVideoResponse cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}
			private UploadVideoResponse PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					UploadVideoResponse other = this.result;
					this.result = new UploadVideoResponse();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}
			public override UploadVideoResponse.Builder Clear()
			{
				this.result = UploadVideoResponse.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}
			public override UploadVideoResponse.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new UploadVideoResponse.Builder(this.result);
				}
				return new UploadVideoResponse.Builder().MergeFrom(this.result);
			}
			public override UploadVideoResponse BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}
			public override UploadVideoResponse.Builder MergeFrom(IMessageLite other)
			{
				if (other is UploadVideoResponse)
				{
					return this.MergeFrom((UploadVideoResponse)other);
				}
				base.MergeFrom(other);
				return this;
			}
			public override UploadVideoResponse.Builder MergeFrom(UploadVideoResponse other)
			{
				return this;
			}
			public override UploadVideoResponse.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}
			public override UploadVideoResponse.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(UploadVideoResponse._uploadVideoResponseFieldNames, text, StringComparer.get_Ordinal());
						if (num2 < 0)
						{
							this.ParseUnknownField(input, extensionRegistry, num, text);
							continue;
						}
						num = UploadVideoResponse._uploadVideoResponseFieldTags[num2];
					}
					uint num3 = num;
					if (num3 <= 18u)
					{
						if (num3 == 0u)
						{
							throw InvalidProtocolBufferException.InvalidTag();
						}
						if (num3 == 10u)
						{
							BaseResponse.Builder builder = BaseResponse.CreateBuilder();
							if (this.result.hasBaseResponse)
							{
								builder.MergeFrom(this.BaseResponse);
							}
							input.ReadMessage(builder, extensionRegistry);
							this.BaseResponse = builder.BuildPartial();
							continue;
						}
						if (num3 == 18u)
						{
							this.result.hasClientMsgId = input.ReadString(ref this.result.clientMsgId_);
							continue;
						}
					}
					else
					{
						if (num3 == 24u)
						{
							this.result.hasMsgId = input.ReadUInt32(ref this.result.msgId_);
							continue;
						}
						if (num3 == 32u)
						{
							this.result.hasThumbStartPos = input.ReadUInt32(ref this.result.thumbStartPos_);
							continue;
						}
						if (num3 == 40u)
						{
							this.result.hasVideoStartPos = input.ReadUInt32(ref this.result.videoStartPos_);
							continue;
						}
					}
					if (WireFormat.IsEndGroupTag(num))
					{
						return this;
					}
					this.ParseUnknownField(input, extensionRegistry, num, text);
				}
				return this;
			}
			public UploadVideoResponse.Builder SetBaseResponse(BaseResponse value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasBaseResponse = true;
				this.result.baseResponse_ = value;
				return this;
			}
			public UploadVideoResponse.Builder SetBaseResponse(BaseResponse.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.hasBaseResponse = true;
				this.result.baseResponse_ = builderForValue.Build();
				return this;
			}
			public UploadVideoResponse.Builder MergeBaseResponse(BaseResponse value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				if (this.result.hasBaseResponse && this.result.baseResponse_ != BaseResponse.DefaultInstance)
				{
					this.result.baseResponse_ = BaseResponse.CreateBuilder(this.result.baseResponse_).MergeFrom(value).BuildPartial();
				}
				else
				{
					this.result.baseResponse_ = value;
				}
				this.result.hasBaseResponse = true;
				return this;
			}
			public UploadVideoResponse.Builder ClearBaseResponse()
			{
				this.PrepareBuilder();
				this.result.hasBaseResponse = false;
				this.result.baseResponse_ = null;
				return this;
			}
			public UploadVideoResponse.Builder SetClientMsgId(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasClientMsgId = true;
				this.result.clientMsgId_ = value;
				return this;
			}
			public UploadVideoResponse.Builder ClearClientMsgId()
			{
				this.PrepareBuilder();
				this.result.hasClientMsgId = false;
				this.result.clientMsgId_ = "";
				return this;
			}
			public UploadVideoResponse.Builder SetMsgId(uint value)
			{
				this.PrepareBuilder();
				this.result.hasMsgId = true;
				this.result.msgId_ = value;
				return this;
			}
			public UploadVideoResponse.Builder ClearMsgId()
			{
				this.PrepareBuilder();
				this.result.hasMsgId = false;
				this.result.msgId_ = 0u;
				return this;
			}
			public UploadVideoResponse.Builder SetThumbStartPos(uint value)
			{
				this.PrepareBuilder();
				this.result.hasThumbStartPos = true;
				this.result.thumbStartPos_ = value;
				return this;
			}
			public UploadVideoResponse.Builder ClearThumbStartPos()
			{
				this.PrepareBuilder();
				this.result.hasThumbStartPos = false;
				this.result.thumbStartPos_ = 0u;
				return this;
			}
			public UploadVideoResponse.Builder SetVideoStartPos(uint value)
			{
				this.PrepareBuilder();
				this.result.hasVideoStartPos = true;
				this.result.videoStartPos_ = value;
				return this;
			}
			public UploadVideoResponse.Builder ClearVideoStartPos()
			{
				this.PrepareBuilder();
				this.result.hasVideoStartPos = false;
				this.result.videoStartPos_ = 0u;
				return this;
			}
		}
		public const int BaseResponseFieldNumber = 1;
		public const int ClientMsgIdFieldNumber = 2;
		public const int MsgIdFieldNumber = 3;
		public const int ThumbStartPosFieldNumber = 4;
		public const int VideoStartPosFieldNumber = 5;
		private static readonly UploadVideoResponse defaultInstance;
		private static readonly string[] _uploadVideoResponseFieldNames;
		private static readonly uint[] _uploadVideoResponseFieldTags;
		private bool hasBaseResponse;
		private BaseResponse baseResponse_;
		private bool hasClientMsgId;
		private string clientMsgId_ = "";
		private bool hasMsgId;
		private uint msgId_;
		private bool hasThumbStartPos;
		private uint thumbStartPos_;
		private bool hasVideoStartPos;
		private uint videoStartPos_;
		private int memoizedSerializedSize = -1;
		public static UploadVideoResponse DefaultInstance
		{
			get
			{
				return UploadVideoResponse.defaultInstance;
			}
		}
		public override UploadVideoResponse DefaultInstanceForType
		{
			get
			{
				return UploadVideoResponse.DefaultInstance;
			}
		}
		protected override UploadVideoResponse ThisMessage
		{
			get
			{
				return this;
			}
		}
		public BaseResponse BaseResponse
		{
			get
			{
				return this.baseResponse_ ?? BaseResponse.DefaultInstance;
			}
		}
		public string ClientMsgId
		{
			get
			{
				return this.clientMsgId_;
			}
		}
		public uint MsgId
		{
			get
			{
				return this.msgId_;
			}
		}
		public uint ThumbStartPos
		{
			get
			{
				return this.thumbStartPos_;
			}
		}
		public uint VideoStartPos
		{
			get
			{
				return this.videoStartPos_;
			}
		}
		public override bool IsInitialized
		{
			get
			{
				return this.hasBaseResponse && this.hasMsgId && this.hasThumbStartPos && this.hasVideoStartPos && this.BaseResponse.IsInitialized;
			}
		}
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				num = 0;
				if (this.hasBaseResponse)
				{
					num += CodedOutputStream.ComputeMessageSize(1, this.BaseResponse);
				}
				if (this.hasClientMsgId)
				{
					num += CodedOutputStream.ComputeStringSize(2, this.ClientMsgId);
				}
				if (this.hasMsgId)
				{
					num += CodedOutputStream.ComputeUInt32Size(3, this.MsgId);
				}
				if (this.hasThumbStartPos)
				{
					num += CodedOutputStream.ComputeUInt32Size(4, this.ThumbStartPos);
				}
				if (this.hasVideoStartPos)
				{
					num += CodedOutputStream.ComputeUInt32Size(5, this.VideoStartPos);
				}
				this.memoizedSerializedSize = num;
				return num;
			}
		}
		private UploadVideoResponse()
		{
		}
		public override void WriteTo(ICodedOutputStream output)
		{
			int arg_06_0 = this.SerializedSize;
			string[] uploadVideoResponseFieldNames = UploadVideoResponse._uploadVideoResponseFieldNames;
			if (this.hasBaseResponse)
			{
				output.WriteMessage(1, uploadVideoResponseFieldNames[0], this.BaseResponse);
			}
			if (this.hasClientMsgId)
			{
				output.WriteString(2, uploadVideoResponseFieldNames[1], this.ClientMsgId);
			}
			if (this.hasMsgId)
			{
				output.WriteUInt32(3, uploadVideoResponseFieldNames[2], this.MsgId);
			}
			if (this.hasThumbStartPos)
			{
				output.WriteUInt32(4, uploadVideoResponseFieldNames[3], this.ThumbStartPos);
			}
			if (this.hasVideoStartPos)
			{
				output.WriteUInt32(5, uploadVideoResponseFieldNames[4], this.VideoStartPos);
			}
		}
		public override int GetHashCode()
		{
			int num = base.GetType().GetHashCode();
			if (this.hasBaseResponse)
			{
				num ^= this.baseResponse_.GetHashCode();
			}
			if (this.hasClientMsgId)
			{
				num ^= this.clientMsgId_.GetHashCode();
			}
			if (this.hasMsgId)
			{
				num ^= this.msgId_.GetHashCode();
			}
			if (this.hasThumbStartPos)
			{
				num ^= this.thumbStartPos_.GetHashCode();
			}
			if (this.hasVideoStartPos)
			{
				num ^= this.videoStartPos_.GetHashCode();
			}
			return num;
		}
		public override bool Equals(object object_0)
		{
			UploadVideoResponse uploadVideoResponse = object_0 as UploadVideoResponse;
			return uploadVideoResponse != null && (this.hasBaseResponse == uploadVideoResponse.hasBaseResponse && (!this.hasBaseResponse || this.baseResponse_.Equals(uploadVideoResponse.baseResponse_))) && (this.hasClientMsgId == uploadVideoResponse.hasClientMsgId && (!this.hasClientMsgId || this.clientMsgId_.Equals(uploadVideoResponse.clientMsgId_))) && (this.hasMsgId == uploadVideoResponse.hasMsgId && (!this.hasMsgId || this.msgId_.Equals(uploadVideoResponse.msgId_))) && (this.hasThumbStartPos == uploadVideoResponse.hasThumbStartPos && (!this.hasThumbStartPos || this.thumbStartPos_.Equals(uploadVideoResponse.thumbStartPos_))) && (this.hasVideoStartPos == uploadVideoResponse.hasVideoStartPos && (!this.hasVideoStartPos || this.videoStartPos_.Equals(uploadVideoResponse.videoStartPos_)));
		}
		public override void PrintTo(TextWriter writer)
		{
			GeneratedMessageLite<UploadVideoResponse, UploadVideoResponse.Builder>.PrintField("BaseResponse", this.hasBaseResponse, this.baseResponse_, writer);
			GeneratedMessageLite<UploadVideoResponse, UploadVideoResponse.Builder>.PrintField("ClientMsgId", this.hasClientMsgId, this.clientMsgId_, writer);
			GeneratedMessageLite<UploadVideoResponse, UploadVideoResponse.Builder>.PrintField("MsgId", this.hasMsgId, this.msgId_, writer);
			GeneratedMessageLite<UploadVideoResponse, UploadVideoResponse.Builder>.PrintField("ThumbStartPos", this.hasThumbStartPos, this.thumbStartPos_, writer);
			GeneratedMessageLite<UploadVideoResponse, UploadVideoResponse.Builder>.PrintField("VideoStartPos", this.hasVideoStartPos, this.videoStartPos_, writer);
		}
		public static UploadVideoResponse ParseFrom(byte[] data)
		{
			return UploadVideoResponse.CreateBuilder().MergeFrom(data).BuildParsed();
		}
		private UploadVideoResponse MakeReadOnly()
		{
			return this;
		}
		public static UploadVideoResponse.Builder CreateBuilder()
		{
			return new UploadVideoResponse.Builder();
		}
		public override UploadVideoResponse.Builder ToBuilder()
		{
			return UploadVideoResponse.CreateBuilder(this);
		}
		public override UploadVideoResponse.Builder CreateBuilderForType()
		{
			return new UploadVideoResponse.Builder();
		}
		public static UploadVideoResponse.Builder CreateBuilder(UploadVideoResponse prototype)
		{
			return new UploadVideoResponse.Builder(prototype);
		}
		static UploadVideoResponse()
		{
			UploadVideoResponse.defaultInstance = new UploadVideoResponse().MakeReadOnly();
			UploadVideoResponse._uploadVideoResponseFieldNames = new string[]
			{
				"BaseResponse",
				"ClientMsgId",
				"MsgId",
				"ThumbStartPos",
				"VideoStartPos"
			};
			UploadVideoResponse._uploadVideoResponseFieldTags = new uint[]
			{
				10u,
				18u,
				24u,
				32u,
				40u
			};
			object.ReferenceEquals(micromsg.Proto.UploadVideoResponse.Descriptor, null);
		}
	}
}
